<p>
  <span *ngFor="let star of stars"  class="glyphicon glyphicon-star"
    [class.glyphicon-star-empty]="star"
  ></span>
  <span>{{rating}}星</span>
</p>